package com.zzyl.nursing.controller.member;

import com.zzyl.common.core.domain.AjaxResult;
import com.zzyl.nursing.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.zzyl.common.utils.PageUtils.startPage;

@RestController
@RequestMapping("/member/user")
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("/my/list-by-page")
    public AjaxResult my() {
        return AjaxResult.success(userService.my());
    }


    @GetMapping("/queryServiceProperties/{iotId}")
    public AjaxResult queryServiceProperties(@PathVariable String iotId) {
        startPage();
        return AjaxResult.success();
    }
}
